Optimal. Leaf size=263 \[ \frac {(a+b x)^{m+1} (B e-A f) (c+d x)^{n+1} (e+f x)^{-m-n-2}}{(m+n+2) (b e-a f) (d e-c f)}-\frac {(a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n-1} \left (\frac {(c+d x) (b e-a f)}{(e+f x) (b c-a d)}\right )^{-n} (a (A d f (m+1)+B (d e (n+1)-c f (m+n+2)))+b (A (c f (n+1)-d e (m+n+2))+B c e (m+1))) \, _2F_1\left (m+1,-n;m+2;-\frac {(d e-c f) (a+b x)}{(b c-a d) (e+f x)}\right )}{(m+1) (m+n+2) (b e-a f)^2 (d e-c f)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 261, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {155, 12, 132} \[ \frac {(a+b x)^{m+1} (B e-A f) (c+d x)^{n+1} (e+f x)^{-m-n-2}}{(m+n+2) (b e-a f) (d e-c f)}-\frac {(a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n-1} \left (\frac {(c+d x) (b e-a f)}{(e+f x) (b c-a d)}\right )^{-n} (a (A d f (m+1)-B c f (m+n+2)+B d e (n+1))+b (A c f (n+1)-A d e (m+n+2)+B c e (m+1))) \, _2F_1\left (m+1,-n;m+2;-\frac {(d e-c f) (a+b x)}{(b c-a d) (e+f x)}\right )}{(m+1) (m+n+2) (b e-a f)^2 (d e-c f)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 132
Rule 155
Rubi steps
\begin {align*} \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-3-m-n} \, dx &=\frac {(B e-A f) (a+b x)^{1+m} (c+d x)^{1+n} (e+f x)^{-2-m-n}}{(b e-a f) (d e-c f) (2+m+n)}-\frac {\int (b (B c e (1+m)+A c f (1+n)-A d e (2+m+n))+a (A d f (1+m)+B d e (1+n)-B c f (2+m+n))) (a+b x)^m (c+d x)^n (e+f x)^{-2-m-n} \, dx}{(b e-a f) (d e-c f) (2+m+n)}\\ &=\frac {(B e-A f) (a+b x)^{1+m} (c+d x)^{1+n} (e+f x)^{-2-m-n}}{(b e-a f) (d e-c f) (2+m+n)}-\frac {(b (B c e (1+m)+A c f (1+n)-A d e (2+m+n))+a (A d f (1+m)+B d e (1+n)-B c f (2+m+n))) \int (a+b x)^m (c+d x)^n (e+f x)^{-2-m-n} \, dx}{(b e-a f) (d e-c f) (2+m+n)}\\ &=\frac {(B e-A f) (a+b x)^{1+m} (c+d x)^{1+n} (e+f x)^{-2-m-n}}{(b e-a f) (d e-c f) (2+m+n)}-\frac {(b (B c e (1+m)+A c f (1+n)-A d e (2+m+n))+a (A d f (1+m)+B d e (1+n)-B c f (2+m+n))) (a+b x)^{1+m} (c+d x)^n \left (\frac {(b e-a f) (c+d x)}{(b c-a d) (e+f x)}\right )^{-n} (e+f x)^{-1-m-n} \, _2F_1\left (1+m,-n;2+m;-\frac {(d e-c f) (a+b x)}{(b c-a d) (e+f x)}\right )}{(b e-a f)^2 (d e-c f) (1+m) (2+m+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.27, size = 223, normalized size = 0.85 \[ -\frac {(a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n-2} \left (\frac {(e+f x) \left (\frac {(c+d x) (b e-a f)}{(e+f x) (b c-a d)}\right )^{-n} (a (A d f (m+1)-B c f (m+n+2)+B d e (n+1))+b (A c f (n+1)-A d e (m+n+2)+B c e (m+1))) \, _2F_1\left (m+1,-n;m+2;\frac {(c f-d e) (a+b x)}{(b c-a d) (e+f x)}\right )}{(m+1) (b e-a f)}+(c+d x) (A f-B e)\right )}{(m+n+2) (b e-a f) (d e-c f)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.17, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 3}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.25, size = 0, normalized size = 0.00 \[ \int \left (B x +A \right ) \left (b x +a \right )^{m} \left (d x +c \right )^{n} \left (f x +e \right )^{-m -n -3}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^m\,{\left (c+d\,x\right )}^n}{{\left (e+f\,x\right )}^{m+n+3}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________